class CreateOffers < ActiveRecord::Migration
  def self.up
    create_table :offers do |t|
      t.integer :offer_from_id
      t.integer :offer_to_id
      t.timestamps
    end
    #NEED HELP!
    #this is where I need a foreign key to the book table.

    add_index :offers, :offer_from_id
    add_index :offers, :offer_to_id
    
  end

  def self.down
    drop_table :offers
  end
end
